package se.sics.drsm.ports.drsm.events;

import se.sics.drsm.model.DRSMAddress;
import se.sics.kompics.Event;

import java.util.List;

/**
 * User: Shadid Chowdhury <msrch@kth.se>
 * Date: 1/22/13
 * Time: 10:50 PM
 */
public class NewPeers extends Event {

    private DRSMAddress localPeer;

    private List<DRSMAddress> newPeerList;

    public NewPeers(List<DRSMAddress> newPeerList) {
        new NewPeers(null, newPeerList);
    }

    public NewPeers(DRSMAddress localPeer,
                    List<DRSMAddress> newPeerList) {
        super();
        this.localPeer = localPeer;
        this.newPeerList = newPeerList;
    }

    public DRSMAddress getLocalPeer() {
        return localPeer;
    }

    public List<DRSMAddress> getNewPeerList() {
        return newPeerList;
    }
}